// 这个地方是准备 表单数据 和表单校验
import { reactive, ref } from 'vue'
import { CheckListAdd } from '@/api/01work/01type'
export default function useBaseTem() {
  const dialogModel = reactive<CheckListAdd>({
    analyseId: '',
    id: '',
    name: '',
    stageId: ''
  })
  const rules = reactive({
    name: [{
      required: true,
      trigger: 'blur',
      message: '请输入分析名称'
    }],
    stageId:[{
        required: true,
      trigger: 'change',
      message: '请选择阶段名称'
    }]
  })
  return{
    dialogModel,rules
  }
}